package com.sinosoft.front.service;

public class CarQueryServicePortTypeProxy implements com.sinosoft.front.service.CarQueryServicePortType {
  private String _endpoint = null;
  private com.sinosoft.front.service.CarQueryServicePortType carQueryServicePortType = null;
  
  public CarQueryServicePortTypeProxy() {
    _initCarQueryServicePortTypeProxy();
  }
  
  public CarQueryServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initCarQueryServicePortTypeProxy();
  }
  
  private void _initCarQueryServicePortTypeProxy() {
    try {
      carQueryServicePortType = (new com.sinosoft.front.service.CarQueryServiceLocator()).getCarQueryServiceHttpSoap11Endpoint();
      if (carQueryServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)carQueryServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)carQueryServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (carQueryServicePortType != null)
      ((javax.xml.rpc.Stub)carQueryServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.sinosoft.front.service.CarQueryServicePortType getCarQueryServicePortType() {
    if (carQueryServicePortType == null)
      _initCarQueryServicePortTypeProxy();
    return carQueryServicePortType;
  }
  
  public com.sinosoft.front.dto.xsd.CarQueryResponse carQuery(com.sinosoft.front.dto.xsd.CarQueryRequest request) throws java.rmi.RemoteException{
    if (carQueryServicePortType == null)
      _initCarQueryServicePortTypeProxy();
    return carQueryServicePortType.carQuery(request);
  }
  
  public void setCarQueryTpInterface(com.sinosoft.front.busInterface.xsd.CarQueryTpInterface carQueryTpInterface) throws java.rmi.RemoteException{
    if (carQueryServicePortType == null)
      _initCarQueryServicePortTypeProxy();
    carQueryServicePortType.setCarQueryTpInterface(carQueryTpInterface);
  }
  
  public com.sinosoft.front.busInterface.xsd.CarQueryTpInterface getCarQueryTpInterface() throws java.rmi.RemoteException{
    if (carQueryServicePortType == null)
      _initCarQueryServicePortTypeProxy();
    return carQueryServicePortType.getCarQueryTpInterface();
  }
  
  public com.sinosoft.front.busInterface.xsd.CarQueryTpCheckInterface getCarQueryTpCheckInterface() throws java.rmi.RemoteException{
    if (carQueryServicePortType == null)
      _initCarQueryServicePortTypeProxy();
    return carQueryServicePortType.getCarQueryTpCheckInterface();
  }
  
  public void setCarQueryTpCheckInterface(com.sinosoft.front.busInterface.xsd.CarQueryTpCheckInterface carQueryTpCheckInterface) throws java.rmi.RemoteException{
    if (carQueryServicePortType == null)
      _initCarQueryServicePortTypeProxy();
    carQueryServicePortType.setCarQueryTpCheckInterface(carQueryTpCheckInterface);
  }
  
  
}